package com.demo.waimai.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 订单主表
 * </p>
 *
 * @author Helen
 * @since 2020-08-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Order对象", description="订单主表")
public class Order implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键")
      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "订单ID")
    private String orderId;

    @ApiModelProperty(value = "用户ID")
    private Integer userId;

    @ApiModelProperty(value = "商铺ID")
    private Integer shopId;

    @ApiModelProperty(value = "餐盒费")
    private BigDecimal boxCost;

    @ApiModelProperty(value = "配送费")
    private BigDecimal sendCost;

    @ApiModelProperty(value = "总价")
    private BigDecimal totalMoney;

    @ApiModelProperty(value = "优惠金额")
    private BigDecimal discountMoney;

    @ApiModelProperty(value = "红包ID")
    private String couponId;

    @ApiModelProperty(value = "红包满减金额")
    private BigDecimal couponMoney;

    @ApiModelProperty(value = "实付金额")
    private BigDecimal payMoney;

    @ApiModelProperty(value = "支付方式")
    private Integer payWay;

    @ApiModelProperty(value = "限定的时间")
    private Integer demandTime;

    @ApiModelProperty(value = "加入时间")
    private Integer addTime;

    @ApiModelProperty(value = "状态")
    private Integer status;


}
